/*
 * txdnet.cn tonydon
 * by netbeans ide 7.2
 */
package cn.txdnet.txcms.query;

/**
 *
 * @author tangxiaodong
 */
public class ViewHotWordQuery extends BaseQuery{
    private static final long serialVersionUID = -2898082162523444169L;
    
    private Long id;
    private Integer cid;
    private Long currtime;

    @Override
    public void filter() {
        this.setCurrtime((Long) System.currentTimeMillis());
        // 防止过大数据读取
        if(this.getListsize()==null || this.getListsize()>50){
            this.setListsize(20);
        }
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the cid
     */
    public Integer getCid() {
        return cid;
    }

    /**
     * @param cid the cid to set
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * @return the currtime
     */
    public Long getCurrtime() {
        return currtime;
    }

    /**
     * @param currtime the currtime to set
     */
    public void setCurrtime(Long currtime) {
        this.currtime = currtime;
    }
    
}
